vcObservableList
vcObservableList extends vcList with modification events.
See in: Overview
Module: vcCore
Parent: vcList
Children -
Referenced by: vcAssemblyPattern.Slots, vcAssemblyPatternManager.Patterns, vcAssemblyProductType.Steps, vcCombinationProductFilter.Filters, ... (see more)
vcAssemblyPattern.Slots
vcAssemblyPatternManager.Patterns
vcAssemblyProductType.Steps
vcCombinationProductFilter.Filters
vcProcessFlowGroup.ProductTypes
vcProcessFlowGroupManager.Groups
vcProcessFlowStep.Groups
vcProcessFlowStep.ProcessConfigurations
vcProcessFlowTable.Sequences
vcProcessSequence.FlowSteps
vcProcessSequence.ProcessConfigurations
vcProductCreatorBatchMode.ProductBatches
vcProductTypeManager.ProductTypes
vcProgram.Routines
vcScope.Statements
vcTransportSystem.Controllers
vcTransportSystem.Links
vcTransportSystem.Nodes
vcWorld.Components
Events
Learn how to use events here. The events are also inherited from the parent class.
| Name | Parameters | Description |
| OnAdd | None | Triggered when an object is added to the vcObservableList. |
| OnRemoving | None | Triggered when an object is about to be removed from the vcObservableList. |
Example: Wait Until Component Added in World
import vcCore as vc world = vc.getWorld() def component_added(added_comp): print (f"Component: {added_comp.Name} added") comp_list = world.Components comp_list.OnAdd += component_added